import request from '@/utils/request'

// 查询科室2列表
export function listKeshi2(query) {
  return request({
    url: '/keshi2/keshi2/list/ruoyi',
    method: 'get',
    params: query
  })
}

// 查询科室2详细
export function getKeshi2(id) {
  return request({
    url: '/keshi2/keshi2/' + id,
    method: 'get'
  })
}

// 新增科室2
export function addKeshi2(data) {
  return request({
    url: '/keshi2/keshi2',
    method: 'post',
    data: data
  })
}

// 修改科室2
export function updateKeshi2(data) {
  return request({
    url: '/keshi2/keshi2',
    method: 'put',
    data: data
  })
}

// 删除科室2
export function delKeshi2(id) {
  return request({
    url: '/keshi2/keshi2/' + id,
    method: 'delete'
  })
}
